package controllers;

import models.Student;
import play.mvc.Controller;
import play.mvc.Result;

import java.util.List;

public class TestController extends Controller {
    public Result showTest() {
        List<Student> students = Student.find.all();
        String name = students.get(0).name;
//        Student student = new Student();
//        student.name = "腾讯";
//        student.save();
        return ok(views.html.test.render(name));
    }

    public Result uploadFile() {
//        request().body().
        return ok("success");
    }
}
